package com.design.visitor;

import lombok.Data;

/**
 * @author ytj
 * @date 2024/11/28 13:21
 */
@Data
public abstract class User {
    /**
     * 姓名
     * */
    private String name;
    /**
     * 身份
     * */
    private String identity;
    /**
     * 班级名称
     * */
    private String className;

    public User(String name,String identity,String className){
        this.name=name;
        this.identity=identity;
        this.className=className;
    }

    public abstract void accept(Visitor visitor);
}
